<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 在一个实例中画两个坐标系，一个坐标系里画折线图，一个坐标系里画柱状图； -->
    <div id="main" style="width: 600px; height: 400px"></div>
    <script src="echarts.min.js"></script>
    <script>
      var myChart = echarts.init(document.getElementById("main"));
      var option = {
        title: {
          text: "金义选",
        },
        grid: [
          { left: "7%", width: "38%", top: "10%", height: "60%" },
          {
            right: "7%",
            width: "38%",
            top: "10%",
            height: "60%",
          },
        ],
        xAxis: [{ gridIndex: 0, min: 0, max: 6 }, { gridIndex: 1 }],
        yAxis: [{ gridIndex: 0 }, { gridIndex: 1 }],
        series: [
          {
            type: "bar",
            name: "bar-string",
            data: [1, 2, 3, 5, 6],
            xAxisIndex: 0,
            yAxisIndex: 0,
          },
          {
            type: "line",
            name: "line-number",
            data: [7, 8, 3, 9, 10],
            xAxisIndex: 1,
            yAxisIndex: 1,
          },
        ],
      };
      myChart.setOption(option);
    </script>
  </body>
</html>
